import api from '../utils/api';

export async function queryList(param) {
  return api.post('/instock/queryList', {
    data: JSON.stringify(param),
  });
}

export async function create(param) {
  return api.post('/instock/create', {
    data: JSON.stringify(param),
  });
}

export async function remove(param) {
  return api.post('/instock/remove', {
    data: JSON.stringify(param),
  });
}

export async function confirmInstock(param) {
  return api.post('/instock/confirmInstock', {
    data: JSON.stringify(param),
  });
}

export async function qryById(param) {
  return api.post('/instock/qryById', {
    data: JSON.stringify(param),
  });
}

export async function querAssetListByParam(param) {
  return api.post('/asset/qryAssetByParamInstock', {
    data: JSON.stringify(param),
  });
}

export async function updateStatus(param) {
  return api.post('/instock/updateStatus', {
    data: JSON.stringify(param),
  });
}
